<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>背景样式 </title>
    <style>
        .first{
            background-color:green;

        }
        .secend{
            background-image:url("images/彩虹.jpg");

        }
    </style>
</head>
<body>
<div class="first">
    zbdx
</div>
<div class="secend">
    tylg
</div>
</body>
</html>
